import {
    usersAsync,
  } from '@/utils/http-client';
  
  import { AuthMode } from '@/types/HttpClient';
  import type { RuleForm } from '@/types/Users';

  
  const baseUrl = import.meta.env.VITE_AUTH_SERVER_BASE_URL;
  
  export async function userAsync(params: RuleForm) {
    return usersAsync(
      baseUrl + '/api/identity/users',
      params,
      AuthMode.Bearer
    );
  }